const fs = require('fs');

module.exports = async function checkpoint(checkpointName, obj) {
  fs.writeFileSync(`./zp_${checkpointName}.ckp.log`, JSON.stringify(obj));
  return obj;
};